#ifndef USERSTRUCT_H
#define USERSTRUCT_H

#include <QObject>
#include <QDebug>
#include <QStringList>
class UserStruct
{
public:
    UserStruct();


    bool isPrimary() const;
    void setIsPrimary(bool isPrimary);

    QString name() const;
    void setName(const QString &name);

    QString account() const;
    void setAccount(const QString &account);

    QString password() const;
    void setPassword(const QString &password);

    QString role() const;
    void setRole(const QString &role);

    QStringList permissionList() const;
    void setPermissionList(const QStringList &permissionList);

private:
    bool m_isPrimary;
    QString m_name;
    QString m_account;
    QString m_password;
    QString m_role;
    QStringList m_permissionList;
};

QDebug operator <<(QDebug debug, const UserStruct &user);

#endif // USERSTRUCT_H
